/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2022-05-13
 * Time:20:17
 */
class Student{
    //实例.普通成员变量
    private String name;
    private String gender;
    private int age;
    private double score;
    public static String classes ="一班";

    public Student(String name, int age, double score) {
        this.name = name;
        this.age = age;
        this.score = score;
        System.out.println("带有三个参数的构造方法执行了");
    }

    //实例代码块:在类的内部，方法的外部
    {
        this.name = "bit";
        this.age = 12;
        System.out.println("实例代码块");
    }

    static {
        classes = "二班";
        System.out.println("静态代码块");
    }

    public void show(){
        System.out.println("name: "+name+" age: "+age+" sex: ");
    }
}
public class Main {
    public static void main(String[] args) {
        System.out.println(Student.classes);
    }
}